home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Help !!!!! on 'strstr"
- Date: Sat, 16 Mar 96 20:46:30 GMT
- Organization: none
- Message-ID: <827009190snz@genesis.demon.co.uk>
- References: <314703FF.4045@msmail.st.stems.com> <jodellDo7097.Bto@netcom.com> <TANMOY.96Mar13090926@qcd.lanl.gov> <3147C7AC.6EE3@hsc.unt.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <3147C7AC.6EE3@hsc.unt.edu>
- sfogoros@hsc.unt.edu "Steve Fogoros" writes:
-
- >Tanmoy Bhattacharya wrote:
- >
- >> Any user function whose name begins with `is' followed by a lower case
- >> letter violates the ANSI C standard.
- >
- >You mentioned the same kind of violation regarding user functions that start
- > with
- >'str' followed by lower case letter in another post.
-
- This is an example of a reserved identifier. Future versions of the language
- could add definitions for such identifiers in standard headers and as
- identifiers with external linkage so to make you code future-proof you should
- avoid using them.
-
- > I apologize that I
- > question
- >this without being intimately familiar with ANSI C Standard. I am having a hard
- > time
- >believing the standard would consider my use of other than reserved words a
- > violation.
-
- The standard says that if you declare or define an identifier in a context
- where it it reserved the result is undefined behaviour. Basically your
- usage may clash with an implementation usage for that identifier.
-
- >(What kind of ticket would I get for an infraction? Is the implementation
- > required to
- >check for this and warn or error?)
-
- No diagnostic is required.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-